home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7001 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: gidora.kralizec.net.au!root
  2. From: rosko@zeta.org.au (Ross McKay)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Visual C++ & SQLConnect
  5. Date: Wed, 21 Feb 1996 13:55:22 GMT
  6. Organization: Soft Technologies
  7. Message-ID: <4gf4q7$vt8@gidora.kralizec.net.au>
  8. References: <4fvns1$164g@news-s01.ny.us.ibm.net>
  9. Reply-To: rosko@zeta.org.au
  10. NNTP-Posting-Host: dialup46.syd1.zeta.org.au
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. schlaep@ibm.net (Patrick Schlaepfer) wrote:
  14. >So what?
  15.  
  16. >If I use the sample program supplied by
  17. >Microsoft help 
  18.  
  19. >SQLConnect
  20.  
  21. >does not work. 
  22. >I receive:
  23.  
  24. >connot convert parameter 2 from char [9] to 
  25. >unsigned char * (new behavoir please see
  26. >help) What help? Any help ?
  27.  
  28. a) in the 16-bit compiler, the docs for ODBC suck bad.
  29.  
  30. b) off the top of my head, everthing is probably OK and
  31.    you just need to cast the second parameter to an
  32.    unsigned char*, eg.   
  33.  
  34.       (UCHAR*)"this is a signed char string"
  35.  
  36.  
  37. ------------------------------------------------------------------
  38. Ross McKay        | snail: GPO Box 562, Sydney NSW 2001 Australia
  39. Soft Technologies | email: mailto:rosko@zeta.org.au
  40. Sydney, Australia |   URL: http://www.zeta.org.au/~rosko
  41. ------------------------------------------------------------------
  42. The opinions expressed are my own, not those of Soft Technologies.
  43.     "The beatings will continue, until staff morale improves."
  44.  
  45.